package com.palmcity.rtti.base;

import java.io.Serializable;


/**
 * <p>EventTime</p>
 * <p>DTI事件包含的时间实体</p>
 *
 * @author		周华彬(zhouhuabin@ctfo.com, zhou_hua_bin@163.com)
 * @version		0.0.0
 * <table style="border:1px solid gray;">
 * <tr>
 * <th width="100px">版本号</th><th width="100px">动作</th><th width="100px">修改人</th><th width="100px">修改时间</th>
 * </tr>
 * <!-- 以 Table 方式书写修改历史 -->
 * <tr>
 * <td>0.0.0</td><td>创建类</td><td>zhouhuabin</td><td>2014年12月30日 下午3:57:23</td>
 * </tr>
 * <tr>
 * <td>XXX</td><td>XXX</td><td>XXX</td><td>XXX</td>
 * </tr>
 * </table>
*/
public class EventTime implements Serializable {
	/** TODO */
	private static final long serialVersionUID = 6084357821523842639L;
	/**
	 * 0 -- it means traffic control is available during the interval from the
	 * start time (month, day, hour, minute) to the end time (month, day, hour,
	 * minute)
	 * <p>
	 * 1 -- it means traffic control is available during the period from the
	 * start date (month, day) to the end date (month, day), with time of
	 * traffic control being the time interval from the start time (hour,
	 * minute) to the end time (hour, minute)
	 */
	private int timeType;
	private int startYYYY;
	private int startMM;
	private int startDD;
	private int startHH;
	private int startTT;
	private int endYYYY;
	private int endMM;
	private int endDD;
	private int endHH;
	private int endTT;

	/**
	 * 构造器 
	 */
	public EventTime() {
		endHH = 31;
		endTT = 63;
		startHH = 31;
		startTT = 63;
	}

	/**
	 * 字段 timeType 获取函数
	 * @return the timeType : int
	 */
	public int getTimeType() {
		return timeType;
	}

	/**
	 * 字段 timeType 设置函数 : int
	 * @param timeType the timeType to set
	 */
	public void setTimeType(int timeType) {
		this.timeType = timeType;
	}

	/**
	 * 字段 startYYYY 获取函数
	 * @return the startYYYY : int
	 */
	public int getStartYYYY() {
		return startYYYY;
	}

	/**
	 * 字段 startYYYY 设置函数 : int
	 * @param startYYYY the startYYYY to set
	 */
	public void setStartYYYY(int startYYYY) {
		this.startYYYY = startYYYY;
	}

	/**
	 * 字段 startMM 获取函数
	 * @return the startMM : int
	 */
	public int getStartMM() {
		return startMM;
	}

	/**
	 * 字段 startMM 设置函数 : int
	 * @param startMM the startMM to set
	 */
	public void setStartMM(int startMM) {
		this.startMM = startMM;
	}

	/**
	 * 字段 startDD 获取函数
	 * @return the startDD : int
	 */
	public int getStartDD() {
		return startDD;
	}

	/**
	 * 字段 startDD 设置函数 : int
	 * @param startDD the startDD to set
	 */
	public void setStartDD(int startDD) {
		this.startDD = startDD;
	}

	/**
	 * 字段 startHH 获取函数
	 * @return the startHH : int
	 */
	public int getStartHH() {
		return startHH;
	}

	/**
	 * 字段 startHH 设置函数 : int
	 * @param startHH the startHH to set
	 */
	public void setStartHH(int startHH) {
		this.startHH = startHH;
	}

	/**
	 * 字段 startTT 获取函数
	 * @return the startTT : int
	 */
	public int getStartTT() {
		return startTT;
	}

	/**
	 * 字段 startTT 设置函数 : int
	 * @param startTT the startTT to set
	 */
	public void setStartTT(int startTT) {
		this.startTT = startTT;
	}

	/**
	 * 字段 endYYYY 获取函数
	 * @return the endYYYY : int
	 */
	public int getEndYYYY() {
		return endYYYY;
	}

	/**
	 * 字段 endYYYY 设置函数 : int
	 * @param endYYYY the endYYYY to set
	 */
	public void setEndYYYY(int endYYYY) {
		this.endYYYY = endYYYY;
	}

	/**
	 * 字段 endMM 获取函数
	 * @return the endMM : int
	 */
	public int getEndMM() {
		return endMM;
	}

	/**
	 * 字段 endMM 设置函数 : int
	 * @param endMM the endMM to set
	 */
	public void setEndMM(int endMM) {
		this.endMM = endMM;
	}

	/**
	 * 字段 endDD 获取函数
	 * @return the endDD : int
	 */
	public int getEndDD() {
		return endDD;
	}

	/**
	 * 字段 endDD 设置函数 : int
	 * @param endDD the endDD to set
	 */
	public void setEndDD(int endDD) {
		this.endDD = endDD;
	}

	/**
	 * 字段 endHH 获取函数
	 * @return the endHH : int
	 */
	public int getEndHH() {
		return endHH;
	}

	/**
	 * 字段 endHH 设置函数 : int
	 * @param endHH the endHH to set
	 */
	public void setEndHH(int endHH) {
		this.endHH = endHH;
	}

	/**
	 * 字段 endTT 获取函数
	 * @return the endTT : int
	 */
	public int getEndTT() {
		return endTT;
	}

	/**
	 * 字段 endTT 设置函数 : int
	 * @param endTT the endTT to set
	 */
	public void setEndTT(int endTT) {
		this.endTT = endTT;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "{"+startYYYY + "-" + startMM + "-" + startDD + " " + startHH + ":" + startTT
				+ "," + endYYYY + "-" + endMM + "-" + endDD + " " + endHH + ":" + endTT + "}";
	}


}
